package com.bootdo.change.dao;



import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.bootdo.change.entity.ChangeTask;

/**
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-04-27 17:30:16
 */
@Mapper
public interface ChangeTaskDao {

	ChangeTask get(String id);
	
	List<ChangeTask> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(ChangeTask tChangeTask);
	
	int update(ChangeTask tChangeTask);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	ChangeTask getOne(Long roleId);

	void updateOne(@Param("date")Date date,@Param("roleId")Long id);

	ChangeTask selectOne(@Param("providerId")Long providerId,@Param("orderId")Long orderId);

	ChangeTask selectAll(@Param("roleId")Long roleId,@Param("orderId")Long orderId);

	ChangeTask selectOver(Long roleId);

	ChangeTask getNew(Long roleId);

	ChangeTask haveTask(Long roleId);

	ChangeTask selectByOne(); 



	

	

	//ChangeTask updateOne(Map<String, Object> map);

	

}
